import request from "../utils/request"

export const reqSendCode = (phone) => {
  return request({
    method: "GET",
    url: `/user/passport/sendCode/${phone}`,
  })
}
export const reqRegister = (data) => {
  return request({
    method: "POST",
    url: `/user/passport/register`,
    data,
  })
}
export const reqGetLogin = (phone,password) => {
  return request({
    method: "POST",
    url: `/user/passport/login`,
    data: {
      phone,
      password,
    },
  })
}
export const reqLogout = () => {
  return request({
    method: "GET",
    url: `/user/passport/logout`,
  })
}
